package com.mcp.converter.shared.response.analysis;

import lombok.Data;

import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * 后备兼容性检测结果类
 * @author zengxiong
 */
@Data
public class FallbackCompatibilityResult {
    private Set<Integer> incompatibleSqlIndexes = new HashSet<>();
    private Map<String, String> functionDetails = new HashMap<>();

    public Set<Integer> getIncompatibleSqlIndexes() {
        return incompatibleSqlIndexes == null ? Collections.emptySet() : incompatibleSqlIndexes;
    }
    public Map<String, String> getFunctionDetails() {
        return functionDetails == null ? Collections.emptyMap() : functionDetails;
    }
}